package com.ctsi.system.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ctsi.common.util.Search;
import com.ctsi.system.entity.UserDataScope;
import com.ctsi.system.mapper.UserDataScopeMapper;
import com.ctsi.system.service.IUserDataScopeService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.stream.Collectors;

/**
 * <p>
 * 系统用户数据范围表 服务实现类
 * </p>
 *
 * @author wang xiao xiang
 */
@Service
public class UserDataScopeServiceImpl extends ServiceImpl<UserDataScopeMapper, UserDataScope> implements IUserDataScopeService {

	@Override
	public IPage<UserDataScope> listPage(Page page, Search search) {
		LambdaQueryWrapper<UserDataScope> queryWrapper = new LambdaQueryWrapper<>();
		return this.baseMapper.selectPage(page, queryWrapper);
	}

}
